package com.kangyi.admin.mapper;

import com.kangyi.admin.annotation.AutoFill;
import com.kangyi.entity.FourHigh;
import com.kangyi.enumeration.OperationType;
import com.kangyi.vo.FourHighVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author Blank
 * @version 1.0
 */
@Mapper
public interface FourHighMapper {

    @Select("select * from four_high where guest_id = #{guestId} order by create_time desc limit 1")
    FourHighVO getById(Integer guestId);

    @Delete("delete from four_high where guest_id = #{guestId};")
    void deleteByGuestId(Integer guestId);
}
